<template>
	<view class="content">
		<view style="display: flex; justify-content: space-between;">
			<view class="list" @click="toGroup">
				<image src="../../static/images/fenzu2.png" mode="widthFix"></image>
				<view>分组管理</view>
			</view>
			<view class="list"  @click="toList">
				<image src="../../static/images/caipu.png" mode="widthFix"></image>
				<view>菜谱管理</view>
			</view>
		</view>
		
		<view style="margin-top: 30rpx;">
			<view class="list">
				<image src="../../static/images/fenzu2.png" mode="widthFix"></image>
				<view>添加菜谱</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			toGroup(){
				uni.navigateTo({
				    url: './group'
				});
			},
			toList(){
				uni.navigateTo({
				    url: './list'
				});
			}
		}
	}
</script>

<style>
	.content {
		padding: 30rpx;
		color: #333;
		display: flex;
		justify-content: space-between;
		flex-direction: column;
	}
	image{
		width: 50%;
	}
	.list{
		display: flex;
		justify-content: center;
		flex-direction: column;
		align-items: center;
		width: 270rpx;
		background-color: #f8f8f8;
		padding: 30rpx;
	}
	.list view{
		margin-top: 40rpx;
	}
	.blue{
		background-color: #007AFF;
		color: #fff;
		border-radius: 4rpx;
	}
</style>
